import request from '@/config/axios'

// 查询文件列表
export const getOrderRoi = () => {
  return request.get({url: '/statistics/trade/homepageOrder',})
}

// 查询文件列表
export const getBusinessAnslysis = () => {
  return request.get({url: '/statistics/trade/homepageBusiness',})
}


// 查询文件列表
export const getAnalysisByUser = (params:{startDate:string;endDate:string;}) => {
  return request.get({url: '/statistics/trade/homepageRevenueUser',params})
}

// 查询文件列表
export const getAnalysisByTime = (params:{startDate:string;endDate:string;}) => {
  return request.get({url: '/statistics/trade/homepageRevenue',params})
}
// 商品热销
export const getProductHot = (params:{type:1|2|3|4}) => {
  return request.get({url: '/statistics/trade/homepageProductHot',params})
}
// 商品热销
export const getProductOrder = () => {
  return request.get({url: '/statistics/trade/homepageOrderProcessing',})
}

// 商品热销
export const getProductOrderSign = () => {
  return request.get({url: '/statistics/trade/homepageOrderSignIn',})
}
// 商品热销
export const getSalesData = () => {
  return request.get({url: '/statistics/trade/homepageOrder',})
}
// 销售排名
export const getSalesRank = (params:{type:1|2|3|4}) => {
  return request.get({url: '/statistics/trade/homepageSalesRanking',params})
}
// 销售排名
export const getToDo = () => {
  return request.get({url: '/statistics/trade/homepageMatter',})
}
